package com.manage.function.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.manage.common.annotation.Excel;
import com.manage.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 财务支出对象 function_expense
 *
 * @author jinghj
 * @date 2025-03-09
 */
@ApiModel(value = "FunctionExpense", description = "财务支出对象 function_expense 的详细信息")
public class FunctionExpense extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     *
     */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 部门ID，非空
     *
     */
    @ApiModelProperty(value = "部门ID，非空")
    @Excel(name = "部门ID，非空")
    private Long deptId;

    private String deptName;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    /**
     * 支出金额，非空
     *
     */
    @ApiModelProperty(value = "支出金额，非空")
    @Excel(name = "支出金额，非空")
    private BigDecimal amount;

    /**
     * 描述
     *
     */
    @ApiModelProperty(value = "描述")
    @Excel(name = "描述")
    private String description;

    /**
     * 支出日期，非空
     *
     */
    @ApiModelProperty(value = "支出日期，非空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支出日期，非空", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expenseDate;

    /**
     * 创建时间，默认当前时间
     *
     */
    @ApiModelProperty(value = "创建时间，默认当前时间")
    private Date createdAt;

    /**
     * 更新时间，默认当前时间且自动更新
     *
     */
    @ApiModelProperty(value = "更新时间，默认当前时间且自动更新")
    private Date updatedAt;

    /**
     * 设置 id 的值
     * @param id id 的值
     */
    public void setId(Long id)
    {
        this.id = id;
    }

    /**
     * 获取 id 的值
     * @return id 的值
     */
    public Long getId()
    {
        return id;
    }
    /**
     * 设置 deptId 的值
     * @param deptId deptId 的值
     */
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    /**
     * 获取 deptId 的值
     * @return deptId 的值
     */
    public Long getDeptId()
    {
        return deptId;
    }
    /**
     * 设置 amount 的值
     * @param amount amount 的值
     */
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    /**
     * 获取 amount 的值
     * @return amount 的值
     */
    public BigDecimal getAmount()
    {
        return amount;
    }
    /**
     * 设置 description 的值
     * @param description description 的值
     */
    public void setDescription(String description)
    {
        this.description = description;
    }

    /**
     * 获取 description 的值
     * @return description 的值
     */
    public String getDescription()
    {
        return description;
    }
    /**
     * 设置 expenseDate 的值
     * @param expenseDate expenseDate 的值
     */
    public void setExpenseDate(Date expenseDate)
    {
        this.expenseDate = expenseDate;
    }

    /**
     * 获取 expenseDate 的值
     * @return expenseDate 的值
     */
    public Date getExpenseDate()
    {
        return expenseDate;
    }
    /**
     * 设置 createdAt 的值
     * @param createdAt createdAt 的值
     */
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    /**
     * 获取 createdAt 的值
     * @return createdAt 的值
     */
    public Date getCreatedAt()
    {
        return createdAt;
    }
    /**
     * 设置 updatedAt 的值
     * @param updatedAt updatedAt 的值
     */
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    /**
     * 获取 updatedAt 的值
     * @return updatedAt 的值
     */
    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("amount", getAmount())
                .append("description", getDescription())
                .append("expenseDate", getExpenseDate())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("deptName", getDeptName())
                .toString();
    }
}
